package org.codeart.chainrespon.example01;

public abstract class Handler {
    
    // 后继处理器
    protected Handler successor;

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }
    
    public abstract void handle(RequestData data);
}
